{extend name="public/layerbase" /}
{block name="css"}
<style>

</style>

{/block}

{block name="content"}

<div class="main-container" id="main-container">
    <div class="main-content">
        <div class="page-content">
            <div class="page-content-area">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="widget-box">
                            <div class="widget-header widget-header-blue widget-header-flat">
                                <h4 class="widget-title lighter">新增活动</h4>
                            </div>
                            <div class="widget-body">
                                <div class="widget-main">
                                    <div class="step-content pos-rel" >
                                        <div class="step-pane active" >

                                            <form class="form-horizontal " id="form" method="post">

                                                <div class="form-group">
                                                    <label class="col-sm-3 control-label no-padding-right" > 活动名称：</label>
                                                    <div class="col-sm-9">
                                                        <div class="clearfix">
                                                            <input type="text" name="title" placeholder="输入活动名称" class="col-xs-12 col-sm-9" value=""/>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-3 control-label no-padding-right" > 活动链接：</label>
                                                    <div class="col-sm-9">
                                                        <div class="clearfix">
                                                            <input type="text" name="url" placeholder="输入活动链接" class="col-xs-12 col-sm-9">
                                                        </div>
                                                    </div>
                                                </div>

                                                <hr />
                                                <div class="clearfix" style="text-align: center">
                                                    <div class="col-md-offset-3 col-md-9">
                                                        {:token()}
                                                        <button class="btn btn-info" type="submit" id="submit">
                                                            <i class="ace-icon fa fa-check bigger-110"></i>
                                                            提交
                                                        </button>

                                                        &nbsp; &nbsp; &nbsp;
                                                        <button class="btn" type="reset">
                                                            <i class="ace-icon fa fa-undo bigger-110"></i>
                                                            重置
                                                        </button>
                                                    </div>
                                                </div>
                                            </form>

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}

{block name="js"}

<script>
    var define_fileds =  {
        name: {
            message: '幼儿园验证失败',
            validators: {
                notEmpty: {
                    message: '幼儿园不能为空'
                },
            }
        },
    };
    var ajaxurl = "{:url('add')}";
</script>


{/block}